package com.example.demo.factory.version2_多态;

/**
 * @author keyer
 * @Name : com.example.demo.factory.version2_多态.OperationAdd
 * @Description : 描述
 * Created by cyd on 2021-05-24 14:18:31
 */
public class OperationAdd extends Operation {

    @Override
    public double getResult() {
        double numberA = super.getNumberA();
        double numberB = super.getNumberB();
        return numberA + numberB;
    }
}
